<?php
$memcache_obj = get_memcache();
$uid = $_COOKIE['uid'];
$uid = $memcache_obj->get("user_".$uid);
$op = $_GET['op'];
if($op == 'login_out'){
    $memcache_obj->delete("user_".$uid);
    header("Location: /wx.php?tp=login");
    exit;
}

if($op == 'check_in'){
    if ($uid) {
        echo echojson('success', '1', '');
        exit;
    } else {
        echo echojson('error', '0', '');
        exit;
    }
}


?>